package com.foxire.thisdemo;

public class Test {
    public static void main(String[] args) {
        // 认识this关键字，理解使用场景
        Student s1 = new Student();
        s1.name = "赵4";
        s1.printInfo();
        System.out.println(s1);

        System.out.println("----------------------------");

        Student s2 = new Student();
        s2.printInfo();
        System.out.println(s2);

        System.out.println("----------------------------");

        Student s3 =  new Student();
        s3.name = "张三";
        s3.printInfo("学习");
        System.out.println(s3);

    }

}
